/*

 */

export default class SessionUserAdapter
{
    /**
     *  将服务器返回的用户信息转化为供SessionUser实例化的数据
     *
     * @param {{}} rawData 服务器返回的描述当前用户的数据
     * @returns {{realName: (string|*), vCardId: (number|*), notSetName: (boolean|*), phoneNumber: (string|*|store.data.servicePhone), isSalesman: (boolean|*), avatarUrl: (string|*|string), accountType: (string|*), nickname: (string|*), purchaseCardBalance: (number|*), purchaseCardDisplayed: (boolean|*), userId: *, notSetAvatar: (boolean|*)}}
     */
    static convert(rawData){
        return {
            ...rawData
        }
    }
}